package
{
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.net.URLRequest;
	
	public class Image extends Sprite
	{

		private var loader:Loader;
		public function Image()
		{
			super();
			
			loader = new Loader();
			this.addChild( loader );
		}
		/**
		 * 加载图片 
		 * @param url
		 * 
		 */		
		public function loadImage(url:String):void
		{
			
			loader.load( new URLRequest(url) );
		}
	}
}